-module(shop1).
-export ([total/1]).

total([{What, Amount}|T]) -> shop:cost(What)*Amount +total(T);

total([]) -> 0.

